package com.google.zxing.client.result;

import com.google.zxing.BarcodeFormat;
import com.google.zxing.Result;
import com.google.zxing.oned.UPCEReader;

public final class ProductResultParser extends ResultParser
{
  public ProductParsedResult parse(Result paramResult)
  {
    BarcodeFormat localBarcodeFormat = paramResult.getBarcodeFormat();
    if ((localBarcodeFormat != BarcodeFormat.UPC_A) && (localBarcodeFormat != BarcodeFormat.UPC_E) && (localBarcodeFormat != BarcodeFormat.EAN_8) && (localBarcodeFormat != BarcodeFormat.EAN_13));
    String str1;
    do
    {
      return null;
      str1 = getMassagedText(paramResult);
    }
    while (!isStringOfDigits(str1, str1.length()));
    if ((localBarcodeFormat == BarcodeFormat.UPC_E) && (str1.length() == 8));
    for (String str2 = UPCEReader.convertUPCEtoUPCA(str1); ; str2 = str1)
      return new ProductParsedResult(str1, str2);
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.google.zxing.client.result.ProductResultParser
 * JD-Core Version:    0.6.2
 */